package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.CompanyDO;
import com.mhc.haval.dal.query.CompanyQuery;

import java.util.List;


/**
 * Manager for Company.
 */
public interface CompanyManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CompanyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CompanyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CompanyDO record);

    /**
     * insert selective.
     */
    long insertSelective(CompanyDO record);

    /**
     * select by query condition.
     */
    List<CompanyDO> selectByQuery(CompanyQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CompanyDO> selectByQueryWithPage(CompanyQuery query);

    /**
     * select by primary key.
     */
    CompanyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CompanyDO record,  CompanyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CompanyDO record, CompanyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CompanyDO record);
}